import request from '@/utils/request'

// 查询日常质量问题报列表
export function listDailyquality(query) {
  return request({
    url: '/dr/dailyquality/list',
    method: 'get',
    params: query
  })
}

// 查询日常质量问题报详细
export function getDailyquality(id) {
  return request({
    url: '/dr/dailyquality/' + id,
    method: 'get'
  })
}

// 新增日常质量问题报
export function addDailyquality(data) {
  return request({
    url: '/dr/dailyquality',
    method: 'post',
    data: data
  })
}

// 修改日常质量问题报
export function updateDailyquality(data) {
  return request({
    url: '/dr/dailyquality',
    method: 'put',
    data: data
  })
}

// 删除日常质量问题报
export function delDailyquality(id) {
  return request({
    url: '/dr/dailyquality/' + id,
    method: 'delete'
  })
}
